package com.s69.ssm.controller;

import com.s69.ssm.entity.StuClass;
import com.s69.ssm.service.StuClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@RequestMapping("/stuClass")
@Controller
public class StuClassController {
    @Autowired
    private StuClassService stuClassService;

    @GetMapping("/list")
    @ResponseBody
    public List<StuClass> list() {
        return stuClassService.list();
    }
}
